html, body {

  line-height: 1;
  font-family: 'PingFang SC', 'STHeitiSC-Light', 'Helvetica-Light', arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  &.forbiden-scroll {
    overflow: hidden;
  }
}

::-webkit-scrollbar {
  width: 0em;
  display: none;
}

::-webkit-scrollbar:horizontal {
  height: 0em;
  display: none;
}

@font-face {
  font-family: 'iconfont';
  src: url('fonts/iconfont.eot');
  src: url('fonts/iconfont.eot?#iefix') format('embedded-opentype'),
  url('fonts/iconfont.woff') format('woff'),
  url('fonts/iconfont.ttf') format('truetype'),
  url('fonts/iconfont.svg#iconfont') format('svg');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 14px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

/*
一像素边框的mixin
 */
/*
下边框的一像素
 */
.border-1px-bottom(@color) {
  position: relative;
  &:after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid @color;
    content: '';
  }
}

/*
上边框的一像素
 */
.border-1px-top(@color) {
  position: relative;
  &:before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-top: 1px solid @color;
    content: '';
  }
}

@keyframes scrollani {

  from {

    transform: rotate3d(0, 0, 1, 0deg);

  }

  to {

    transform: rotate3d(0, 0, 1, 270deg);
  }
}

/*
根据dpi缩放边框的大小,处理一边框的媒体查询
 */
@media (-webkit-min-device-pixel-ratio: 1.5) {
  .border-1px-bottom {
    &:after {
      -webkit-transform: scaleY(0.7);
      transform: scaleY(0.7);
    }
  }

  .border-1px-top {
    &:before {
      -webkit-transform: scaleY(0.7);
      transform: scaleY(0.7);
    }
  }

}

@media (min-device-pixel-ratio: 1.5) {
  .border-1px-bottom {
    &:after {
      -webkit-transform: scaleY(0.7);
      transform: scaleY(0.7);
    }
  }

  .border-1px-top {
    &:before {
      -webkit-transform: scaleY(0.7);
      transform: scaleY(0.7);
    }
  }

}

@media (-webkit-min-device-pixel-ration: 2) {
  .border-1px-bottom {
    &:after {
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
    }
  }

  .border-1px-top {
    &:before {
      -webkit-transform: scaleY(0.7);
      transform: scaleY(0.7);
    }
  }
}

@media (min-device-pixel-ratio: 2) {
  .border-1px-bottom {
    &:after {
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
    }
  }

  .border-1px-top {
    &:before {
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
    }
  }
}

.common-flex {

  display: box; /* OLD - Android 4.4- */
  display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox; /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Chrome */
  display: flex;
}

.common-justify(@location) {

  /* 09版 */
  -webkit-box-pack: @location;
  /* 12版 */
  -webkit-justify-content: @location;
  -moz-justify-content: @location;
  -ms-justify-content: @location;
  -o-justify-content: @location;
  justify-content: @location;
}

.align-items(@location) {

  /* 09版 */
  -webkit-box-align: @location;
  /* 12版 */
  -webkit-align-items: @location;
  -moz-align-items: @location;
  -ms-align-items: @location;
  -o-align-items: @location;
  align-items: @location;
}

.child-flex(@number) {

  -webkit-box-flex: @number; /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-flex: @number; /* OLD - Firefox 19- */
  -webkit-flex: @number; /* Chrome */
  -ms-flex: @number; /* IE 10 */
  flex: @number;

}

@keyframes changeOn {

  from {

    background: #07b6d0;
    color: #fff;

  }

  to {

    background: #fff;
    color: #07b6d0;
  }
}

@keyframes changeOff {

  from {

    background: #e12e21;
    color: #fff;

  }

  to {

    background: #fff;
    color: #e12e21;

  }
}

#loadding-pannel {

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: none;
  z-index: 10001;

  .little-pannel {

    position: fixed;
    width: 30%;
    height: 10%;
    left: 50%;
    top: 50%;
    margin-left: -15%;
    margin-top: -5%;
    background: rgba(0, 0, 0, .4);

    .iconfont {

      position: absolute;
      top: 50%;
      left: 50%;
      margin-top: -15px;
      margin-left: -15px;
      color: #fff;
      font-size: 30px;
      line-height: 1;

    }

    .scrollani {

      -webkit-animation: scrollani 1s infinite;
      animation: scrollani 1s infinite;
      animation-timing-function: linear;
      -webkit-animation-timing-function: linear;
    }
  }

  .regist-pannel {
    position: fixed;
    display: none;
    width: 260px;
    height: 180px;
    left: 50%;
    top: 50%;
    margin-left: -148px;
    margin-top: -96px;
    padding: 0 18px;
    background: #f1f1f1;
    border-radius: 4px;

    .close {
      position: absolute;
      right: -9px;
      top: -9px;
      width: 26px;
      height: 26px;
      line-height: 26px;
      border-radius: 50%;
      text-align: center;
      background: #e4e3e3;
      i {
        font-size: 12px;
        color: #000;

      }
    }

    .title {
      font-size: 18px;
      line-height: 28px;
      margin-top: 10px;
      margin-bottom: 10px;
      color: #000;
      font-weight: 600;
      text-align: center;
    }

    .from-group {
      width: 100%;
      height: 36px;
      line-height: 36px;
      border-bottom: 1px solid #d1d1d1;
      font-size: 0;
      .from-label {
        display: inline-block;
        vertical-align: middle;
        margin-right: 10px;
        font-size: 16px;
        color: #3c3c3c;
      }
      .phone-num, .regist-num {
        display: inline-block;
        vertical-align: middle;
        width: 105px;
        height: 28px;
        font-size: 14px;
        border: none;
        background: #f1f1f1;
      }

      .regist-btn {
        display: inline-block;
        box-sizing: border-box;
        height: 26px;
        padding: 0 5px;
        line-height: 26px;
        vertical-align: middle;
        font-size: 12px;
        border-radius: 4px;
        background: #e4e3e3;
      }

      .forbiden {
        color: #a2a2a2;
        padding-top: 1px;
      }
      .active {
        color: #000;
        border: 1px solid rgba(0, 0, 0, 0.2);
      }

    }

    .submit {
      display: block;
      width: 65px;
      margin: 12px auto;
      height: 30px;
      line-height: 30px;
      font-size: 14px;
      text-align: center;
      border-radius: 4px;
      background: #cccccc;

      &.forbiden {

        color: #a2a2a2;

      }

      &.active {

        color: #000;
      }

    }

  }
}

.color-pannel {
  background: rgba(0, 0, 0, 0.2)
}

.pull-area {
  position: absolute;
  top: 100px;
  width: 100%;
  height: 40px;
  padding-top: 40px;
  text-align: center;
  background: url(http://pic.c-ctrip.com/h5/tuan/load_text.png) no-repeat center 10px;
  background-size: 172px 22px;
  z-index: -1;

  .circle {
    position: absolute;
    margin-left: -28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #f00;
    clip: rect(0, 15px, 18px, 0);
    line-height: 35px;
    animation: circle-ani 1s linear infinite;

    .pull-text {

      line-height: 35px;
      font-size: 14px;

    }
  }
}

@keyframes circle-ani {

  from {

    transform: rotate(0);
  }

  to {

    transform: rotate(360deg);
  }
}

//普通用户模式的pannel

.box-user-pannel {

  height: 100%;
  width: 100%;

  .top {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 190px;
    z-index: 1001;

    /*
    头部相关样式
     */

    .header {

      width: 100%;
      height: 160px;
      line-height: 160px;
      background: #db1a0b;
      text-align: center;

      .user-msg {
        display: inline-block;
        text-align: center;
        vertical-align: middle;

        .user-img {

          width: 80px;
          height: 80px;
          border-radius: 50%;
          margin-bottom: 10px;
          overflow: hidden;
          line-height: 80px;
          font-size: 0;
          line-height: 0;

          img {

            display: block;
            line-height: 0;
            font-size: 0;
            width: 80px;
            height: 80px;
            vertical-align: top;

          }
        }

        .user-name {

          font-size: 16px;
          line-height: 1;
          color: #fff;

        }

      }
    }
    .banner-msg {
      position: relative;
      height: 30px;
      line-height: 30px;
      font-size: 14px;
      color: #000;
      text-align: center;
      font-weight: bold;
      background: #fff;
      .border-1px-bottom(#bdbfc2);

      .announce-icon {

        position: absolute;
        margin-left: -26px;
        margin-top: -9px;
        top: 50%;
        width: 18px;
        height: 18px;
        line-height: 18px;
        text-align: center;
        border-radius: 50%;
        background: #f00;

        .iconfont {

          color: #fff;
          font-size: 10px;
        }
      }

      .more {

        position: absolute;
        line-height: 1;
        right: 16px;
        top: 50%;
        margin-top: -5px;
        font-size: 10px;
        color: #adadae;

        i {

          font-size: 10px;
          color: #adadae;
        }

      }
    }

  }

  /*
  主要信息列表部分
   */

  .main-lock-msg {

    width: 100%;
    padding-top: 190px;
    padding-bottom: 46px;
    //&::-webkit-scrollbar{ display: none;}
    .lock-msg-list {
      height: auto;
      width: 100%;
      display: block;
      .item {
        width: 100%;
        height: 150px;
        line-height: 150px;
        .border-1px-bottom(#d8dcdd);
        text-align: center;
        font-size: 0;

        .lock-img-msg {
          display: inline-block;
          line-height: 1;
          vertical-align: middle;
          width: 110px;
          text-align: center;

          .lock-status {

            display: inline-block;
            position: relative;
            line-height: 0;
            width: 99px;
            height: 99px;

            img {

              position: absolute;
              left: 0;
              top: 0;

            }

            .top {

              z-index: 100;
              transform-origin: bottom center;
              transition: all 2s;
              width: 99px;
              height: 87px;
            }

            .bottom {
              z-index: 101;
              height: 99px;
              width: 99px;
            }

          }

          .top-up {

            .top {

              transform: rotate3d(1, 0, 0, 0deg);
            }

          }

          .top-down {

            .top {

              transform: rotate3d(1, 0, 0, 70deg);
            }

          }

          .lock-num {
            margin-top: 8px;
            font-size: 14px;
            line-height: 1;
            color: #000;

          }

        }

        @media (max-width: 375px) {

          .lock-controller {

            display: inline-block;
            text-align: center;
            line-height: 1;
            vertical-align: middle;
            height: 150px;

            .community-content {
              display: inline-block;
              margin-top: 9px;
              margin-bottom: 12px;
              height: 20px;
              line-height: 20px;
              border-radius: 18px;
              padding: 0 8px;
              font-size: 14px;
              background: #f8b551;
              color: #fff;

              .community-name {

                display: inline-block;
                vertical-align: middle;
                padding: 0 26px 0 4px;
                height: 16px;
                line-height: 16px;
                border-radius: 18px;
                background: #fff;
              }

            }
            .lock-switch {

              height: 56px;
              width: 100%;
              margin-bottom: 20px;
              clear: both;
              font-size: 0;

              .btn {
                display: inline-block;
                height: 60px;
                line-height: 60px;
                width: 60px;
                border-radius: 50%;
                font-weight: bold;
                font-size: 20px;
                color: #fff;

              }

              .on {

                background: #07b6d0;

                &:active {

                  background: #fff;
                  color: #07b6d0;
                }
              }

              .off {

                background: #e12e21;

                &:active {

                  background: #fff;
                  color: #e12e21;
                }
              }
            }

            .last-stop-content {

              color: #000;
              font-size: 0;

              &:before {
                display: inline-block;
                content: "上次停车";
                font-size: 12px;
                vertical-align: middle;

              }

              .last-stop-time {
                display: inline-block;
                margin-left: 8px;
                font-size: 12px;
                vertical-align: middle;

              }
              i {
                display: inline-block;
                color: #000;
                font-size: 12px;
                margin-left: 3px;
                vertical-align: middle;
              }

            }
          }

        }

        @media (min-width: 375px) {

          .lock-controller {

            display: inline-block;
            text-align: center;
            line-height: 1;
            vertical-align: middle;
            height: 150px;

            .community-content {
              display: inline-block;
              margin-top: 9px;
              margin-bottom: 12px;
              height: 20px;
              line-height: 20px;
              border-radius: 18px;
              padding: 0 8px;
              font-size: 14px;
              background: #f8b551;
              color: #fff;

              .community-name {
                display: inline-block;
                vertical-align: middle;
                padding: 0 26px 0 4px;
                height: 16px;
                line-height: 16px;
                border-radius: 18px;
                background: #fff;

              }

            }

            .lock-switch {

              height: 56px;
              width: 100%;
              margin-bottom: 20px;
              clear: both;
              font-size: 0;

              .btn {
                display: inline-block;
                height: 65px;
                line-height: 65px;
                width: 65px;
                border-radius: 50%;
                font-weight: bold;
                font-size: 24px;
                color: #fff;
                text-align: center;

              }

              .on {

                background: #07b6d0;

                &:active {

                  background: #fff;
                  color: #07b6d0;
                }
              }

              .off {

                background: #e12e21;

                &:active {

                  background: #fff;
                  color: #e12e21;
                }
              }
            }

            .last-stop-content {

              color: #000;
              font-size: 0;

              &:before {
                display: inline-block;
                content: "上次停车";
                font-size: 12px;
                vertical-align: middle;

              }

              .last-stop-time {
                display: inline-block;
                margin-left: 8px;
                font-size: 12px;
                vertical-align: middle;

              }

              i {
                display: inline-block;
                color: #000;
                font-size: 12px;
                margin-left: 5px;
                vertical-align: middle;
              }

            }
          }

        }

      }
    }

    .lock-msg-change-list {

      padding: 10px 10px;
      box-sizing: border-box;
      display: none;

      .lock-change-item {

        float: left;
        width: 25%;
        font-size: 12px;
        position: relative;
        vertical-align: middle;
        text-align: center;
        box-sizing: border-box;

        &:before {

          content: "";
          display: inline-block;
          padding-bottom: 100%;
          width: .1px;
          vertical-align: middle;

        }

        .lock-change-controller {

          display: inline-block;
          vertical-align: middle;
          font-size: 1.4em;
          width: 80%;
          color: #fff;

          .controller-btn {

            display: inline-block;
            width: 70%;
            border-radius: 50%;
            background: rgb(37, 170, 198);
            vertical-align: middle;
            position: relative;

            &:before {

              content: "";
              display: inline-block;
              padding-bottom: 100%;
              width: .1px;
              vertical-align: middle;
            }
          }

          .lock-num {

            color: #000;
            margin-bottom: 10%;
            font-size: 1em;

          }

        }
      }
    }

    .footer-loading-pannel {

      width: 100%;
      height: 30px;
      text-align: center;
      line-height: 30px;
      display: none;

      .circle {

        position: absolute;
        margin-top: 6px;
        margin-left: 5px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid #f00;
        clip: rect(0, 15px, 18px, 0);
        line-height: 30px;
        animation: circle-ani 1s linear infinite;
      }

      .footer-loading-text {
        font-size: 12px;
        margin-left: 35px;
        vertical-align: middle;
      }
    }

  }

}

.box-company-pannel{
  .select-pannel{
    position:absolute;
    width:288px;
    height:230px;
    top:20px;
    left:50%;
    margin-left:-144px;
    background:#fff;
    border-radius:6px;
    z-index:1001;
    .arrow{
      position:absolute;
      width:0;
      height:0;
      border:10px solid transparent;
      border-top-color:#fff;
      left:50%;
      top:230px;
      margin-left:-10px;

    }
    .select-content{
      width:100%;
      height:100%;
      font-size:0;
      overflow:scroll;
      .btn{
        width:36px;
        height:36px;
        line-height:36px;
        text-align:center;
        border-radius:50%;
        display:inline-block;
        vertical-align:middle;
        margin-left:(288-6*36)/7px;
        margin-top:15px;
        background:#e8e7e7;
        color:#000;
        font-size:14px;
      }
    }
  }
  .header{
    padding-top:1px;
    height:332px;
    width:100%;
    background:#d3190b;
    .user-img{
      position:absolute;
      left:20px;
      top:15px;
      img{
        display:block;
        width:60px;
        height:60px;
        border-radius:50%;
      }
      .username{
        margin-top:10px;
        color:#fff;
        font-size:12px;
        text-align:center;
      }
    }
    .controller-area{
      width:195px;
      margin:50px auto 0 auto;
      .lock-area{
        position:relative;
        width:195px;
        height:195px;
        border-radius:50%;
        border:2px solid #fff;
        .lock-inner-area{
          position:absolute;
          width:176px;
          height:176px;
          line-height:176px;
          left:50%;
          top:50%;
          margin-top:-88px;
          margin-left:-88px;
          border-radius:50%;
          background:#fff;
          text-align:center;
          .lock-status{
            display:inline-block;
            position:relative;
            vertical-align:middle;
            line-height:1;
            width:132px;
            height:125px;
            margin-top:-15px;

            &.top-up {

              .top {

                transform: rotate3d(1, 0, 0, 0deg);
              }

            }
            &.top-down {

              .top {

                transform: rotate3d(1, 0, 0, 70deg);
              }

            }
            img{
              position:absolute;
            }
            .top{
              left:0;
              top:0;
              z-index: 100;
              transform-origin: bottom center;
              transition: all 2s;
              width: 132px;
              height: 125px;
            }
            .bottom{
              z-index: 101;
              height: 125px;
              width: 132px;
              left:0;
              bottom:-10px !important;
            }

          }
        }
      }
      .lock-num-btn{
        width:63px;
        height:32px;
        line-height:34px;
        margin:10px auto;
        text-align:center;
        border-radius:20px;
        background:#ffffff;
        font-size:25px;
      }
      .lock-select-msg{
        text-align:center;
        color:#fff;
        font-size:12px;
      }
    }






  }
  .banner-msg {
    position: relative;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    color: #000;
    text-align: center;
    font-weight: bold;
    background: #fff;
    .border-1px-bottom(#bdbfc2);

    .announce-icon {

      position: absolute;
      margin-left: -26px;
      margin-top: -9px;
      top: 50%;
      width: 18px;
      height: 18px;
      line-height: 18px;
      text-align: center;
      border-radius: 50%;
      background: #f00;

      .iconfont {

        color: #fff;
        font-size: 10px;
      }
    }

    .more {

      position: absolute;
      line-height: 1;
      right: 16px;
      top: 50%;
      margin-top: -5px;
      font-size: 10px;
      color: #adadae;

      i {

        font-size: 10px;
        color: #adadae;
      }

    }
  }
  .main-pannel{
    position:absolute;
    display:table;
    top:363px;
    bottom:46px;
    width:100%;
    overflow:hidden;
    text-align:center;

    .lock-controller {
      display:table-cell;
      text-align: center;
      line-height: 1;
      vertical-align: middle;
      height: 150px;

      .community-content {
        display: inline-block;
        margin-top: 9px;
        margin-bottom: 12px;
        height: 20px;
        line-height: 20px;
        border-radius: 18px;
        padding: 0 8px;
        font-size: 14px;
        background: #f8b551;
        color: #fff;

        .community-name {
          display: inline-block;
          vertical-align: middle;
          padding: 0 26px 0 4px;
          height: 16px;
          line-height: 16px;
          border-radius: 18px;
          background: #fff;

        }

      }

      .lock-switch {

        height: 56px;
        width: 100%;
        margin-bottom: 20px;
        clear: both;
        font-size: 0;

        .btn {
          display: inline-block;
          height:60px;
          line-height:60px;
          width:60px;
          border-radius:50%;
          font-weight: bold;
          font-size: 24px;
          color: #fff;
          text-align: center;

        }

        .on {

          background: #07b6d0;

          &:active {

            background: #fff;
            color: #07b6d0;
          }
        }

        .off {

          background: #e12e21;

          &:active {

            background: #fff;
            color: #e12e21;
          }
        }
      }

      .last-stop-content {

        color: #000;
        font-size: 0;

        &:before {
          display: inline-block;
          content: "上次停车";
          font-size: 12px;
          vertical-align: middle;

        }

        .last-stop-time {
          display: inline-block;
          margin-left: 8px;
          font-size: 12px;
          vertical-align: middle;

        }

        i {
          display: inline-block;
          color: #000;
          font-size: 12px;
          margin-left: 5px;
          vertical-align: middle;
        }

      }
    }

  }
}

/*
尾部相关样式
 */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46px;
  line-height: 46px;
  background: #ebecec;
  z-index: 1001;

  .footer-item {
    float: left;
    height: 46px;
    width: 33.3%;

    .footer-msg {
      display: inline-block;
      vertical-align: middle;
      width: 100%;
      text-align: center;
      line-height: 1;

      .iconfont {
        display: inline-block;
        font-size: 18px;
        line-height: 1em;

      }

      p {
        margin-top: 4px;
        font-size: 10px;
        line-height: 1em;
        text-align: center;

      }
    }

  }

}
